<table width="800" style="border:1px solid #000">
    <a href="<?php echo site_url('news/add') ?>"><input type="button" value="添加新闻信息"></a>
    <caption>新闻列表数据</caption>
    <thead>
        <tr>
            <th>id</th>
            <th>标题</th>
            <th>作者</th>
            <th>内容</th>
            <th>添加时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach($news as $v): ?>
            <tr style="text-align: center;border-top:1px solid red">
                <td><?php echo $v['id'] ?></td>
                <td><?php echo $v['title'] ?></td>
                <td><?php echo $v['author'] ?></td>
                <td><?php echo $v['content'] ?></td>
                <td><?php echo date('Y/m/d H:i:s',$v['add_time']) ?></td>
                <td><input type="button" value="编辑"></td>
            </tr>
       <?php endforeach; ?>


    </tbody>
</table>